<template>
  <a-card-grid
    :description="description"
    :title="title"
  >
    <template v-if="$slots.avatar" #avatar>
      <slot name="avatar" />
    </template>
    <template v-if="$slots.description" #description>
      <slot name="description" />
    </template>
    <template v-if="$slots.title" #title>
      <slot name="title" />
    </template>
    <slot />
  </a-card-grid>
</template>
<script>
import { defineComponent } from 'vue'
import { CardGrid } from 'ant-design-vue'

export default defineComponent({
  name: 'ZCardGrid',
  components: {
    ACardGrid: CardGrid
  },
  props: {
    description: {
      type: String,
      default: undefined
    },
    title: {
      type: String,
      default: undefined
    }
  }
})
</script>
